/**
 * 对应 设置-模式切换
 */

export const baseMeun = {
  order: {
    label: "点餐",
    icon: "iconzhucan-canyin",
    url: "/pages/subOrder/place-order/index",
    // url: '/pages/subHome/globalHomePage/index',
    iconType: "font",
    bgColor: "white",
  },
  dingdan: {
    label: "订单",
    icon: "iconzhucan-dingdan",
    url: "/pages/subOrder/orders/index",
    iconType: "font",
    bgColor: "white",
  },
  member: {
    label: "会员",
    icon: "iconzhucan-pinpaix",
    url: "/pages/subMember/index",
    iconType: "font",
    bgColor: "white",
  },
  dishes: {
    label: "菜品",
    icon: "iconzhucan-zaocan",
    url: "/pages/subOrder/dishes/index",
    iconType: "font",
    bgColor: "white",
  },

  report: {
    label: "报表",
    icon: "iconzhucan-dingdan",
    url: "/pages/subReportForm/index",
    iconType: "font",
    bgColor: "white",
  },
  print: {
    label: "打印",
    icon: "iconzhucan-dayinji",
    url: "/pages/subReportForm/print",
    iconType: "font",
    bgColor: "white",
  },
  desk: {
    label: "桌台",
    icon: "iconzhucan-houtaishangpinguanli",
    url: "", //"/pages/subOrder/desk/index",
    iconType: "font",
    bgColor: "grey",
    iconColor: "lightgrey",
  },
  setting: {
    label: "设置",
    icon: "iconzhucan-shezhi",
    url: "/pages/subSetting/index",
    iconType: "font",
    bgColor: "white",
    bgShape: "square",
  },
  acceptOrders: {
    label: "接单",
    icon: "iconzhucan-houtaishangpinguanli",
    url: "",
    // url: '/pages/subHome/globalHomePage/index',
    iconType: "font",
    bgColor: "grey",
    iconColor: "lightgrey",
  },
  clerk: {
    label: "店员",
    icon: "iconzhucan-houtaishangpinguanli",
    url: "",
    // url: '/pages/subHome/globalHomePage/index',
    iconType: "font",
    bgColor: "grey",
    iconColor: "lightgrey",
  },
  handover: {
    label: "交班",
    icon: "iconzhucan-houtaishangpinguanli",
    url: "",
    // url: '/pages/subHome/globalHomePage/index',
    iconType: "font",
    bgColor: "grey",
    iconColor: "lightgrey",
  },

  cashier: {
    label: "收银台",
    icon: "iconzhucan-houtaishangpinguanli",
    url: "/pages/subOrder/mode-page/cashier",
    iconType: "font",
    bgColor: "white",
  },
  cashierFixed: {
    label: "收银台",
    icon: "iconzhucan-houtaishangpinguanli",
    url: "/pages/subOrder/mode-page/cashier-fixed",
    iconType: "font",
    bgColor: "white",
  },
};

export const modeMeun = {
  /** 菜品消费 */
  "0": [
    [
      baseMeun.order,
      baseMeun.dingdan,
      baseMeun.member,
      baseMeun.dishes,
      baseMeun.report,
      baseMeun.print,
      baseMeun.setting,
      baseMeun.desk,
    ],
    [baseMeun.acceptOrders, baseMeun.clerk, baseMeun.handover],
  ],
  /** 自由消费 */
  "1": [[baseMeun.cashier, baseMeun.setting,  baseMeun.print, baseMeun.dingdan, baseMeun.member]],
  /** 定额消费 */
  "2": [[ baseMeun.cashierFixed, baseMeun.setting,baseMeun.print, baseMeun.dingdan, baseMeun.member]],
  /** 无鉴权模式 */
  "3": [[baseMeun.setting, baseMeun.order]],
};
